package com.crm.start;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author ShaoXuan
 * @create 2022/1/24
 */
@SpringBootApplication(scanBasePackages = {"com.crm"})
@EnableScheduling
@MapperScan(basePackages = {"com.crm.security.mapper","com.crm.boss.mapper"
        ,"com.crm.crm.mapper","com.crm.okr.mapper","com.crm.mapper","com.crm.system.mapper"})
public class FCWRApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(FCWRApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(FCWRApplication.class);
    }


}
